<?php /** @noinspection PhpUnusedPrivateFieldInspection */

declare(strict_types=1);

namespace Dreamcat\ApiDocTest\Demo\Popo;

use Dreamcat\ApiDoc\Annotations\ApiModelProperty;
use Dreamcat\ApiDocTest\Demo\Enum\ValueType;
use DreamCat\ObjectValid\Annotation\NumberScope;
use Dreamcat\PropertyAnalysis\Annotation\ArrayDescAnno;

/**
 * 结果
 * @author vijay
 */
class Result
{
    #[ApiModelProperty("字符串字段，uuid", "@guid")]
    private string $fs;

    #[ApiModelProperty("整数字段")]
    #[NumberScope(max: 5, min: 2)]
    private ?int $intF;

    #[ApiModelProperty("数据类型")]
    private ValueType $dataType;

    #[ApiModelProperty("obj2列表")]
    #[ArrayDescAnno(Obj2::class)]
    private array $obj2s;

    #[ApiModelProperty("响应值的浮点数")]
    private float $retFloat = 5.3;
}

# end of file
